package com.create.myworld.factory;

import com.create.myworld.objects.derive.substance.SubObject;
import com.create.myworld.worldthings.WorldThings;

/**
 * @author zcw
 * 物品工厂
 */
public class ObjectFactory extends WorldFactory {

    public ObjectFactory(){
        name = "物品工厂";
        setNext(null);
    }

    @Override
    protected void produce() {
        SubObject car = new SubObject("汽车",SubObject.class,150L);
        SubObject house = new SubObject("房子",SubObject.class,200L);
        SubObject rice = new SubObject("饭",SubObject.class,1L);
        SubObject beef = new SubObject("牛肉",SubObject.class,2L);
        SubObject apple = new SubObject("苹果",SubObject.class,1L);
        SubObject pear = new SubObject("香梨",SubObject.class,1L);
        SubObject phone = new SubObject("手机",SubObject.class,5L);
        SubObject bike = new SubObject("自行车",SubObject.class,5L);
        SubObject tShirt = new SubObject("T恤",SubObject.class,2L);
        SubObject shoes = new SubObject("鞋子",SubObject.class,2L);
        SubObject hat = new SubObject("帽子",SubObject.class,2l);
        SubObject computer = new SubObject("电脑",SubObject.class,5L);
        SubObject book = new SubObject("书",SubObject.class,2L);
        SubObject juice = new SubObject("果汁",SubObject.class,2L);
        WorldThings.insertObject(car,house,rice,beef,apple,pear,phone,bike,tShirt,shoes,hat,computer,book,juice);

    }
}
